package com.yxy.model;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_customer",schema = "")
public class TableCustomer {

  //null
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //客户名称
  @Column(name = "customer_name")
  private String customerName;

  //联系人姓名
  @Column(name = "customer_linkman")
  private String customerLinkman;

  //客户联系电话
  @Column(name = "customer_tel")
  private String customerTel;

  //客户地址
  @Column(name = "customer_address")
  private String customerAddress;

  //客户类型 1企业  2个人 3其他
  @Column(name = "customer_type")
  private Long customerType;

  //null
  @Column(name = "create_date")
  private Date createDate;

  //null
  @Column(name = "create_user_id")
  private Long createUserId;

  //null
  @Column(name = "create_user_name")
  private String createUserName;

  //null
  @Column(name = "update_date")
  private Date updateDate;

  //null
  @Column(name = "update_user_id")
  private Long updateUserId;

  //null
  @Column(name = "update_user_name")
  private String updateUserName;

  //客户描述
  @Column(name = "misc")
  private String misc;

  //null
  @Column(name = "tenant_id")
  private Long tenantId;

  //null
  @Column(name = "status")
  private Long status;


}
